<?php
/**
 * 拼多多主站频道推广接口
 */

namespace pdd\api;


class PddDdkOauthResourceUrlGen extends Pdd
{

    public $Param;

    public function getApiMethodName()
    {
        return "pdd.ddk.oauth.resource.url.gen";
        // TODO: Implement getApiMethodName() method.
    }


    public function getApiParas()
    {
        return $this->Param;
        // TODO: Implement getApiParas() method.
    }

    /**
     * 是否生成小程序
     * @param $generate_we_app
     */

    public function setGenerateWeApp($generate_we_app){
        $this->Param['generate_we_app']=$generate_we_app;
    }


    /**
     * 推广位
     * @param $pid
     */
    public function setPid($pid){
        $this->Param['pid']=$pid;
    }


    /**
     * 频道来源：4-限时秒杀,39997-充值中心, 39998-转链type，39999-电器城，39996-百亿补贴
     * @param $resource_type
     */
    public function setResourceType($resource_type){
        $this->Param['resource_type']=$resource_type;
    }


    /**
     * 是否返回 schema URL
     * @param $generate_schema_url
     */
    public function setGenerateSchemaUrl($generate_schema_url){
        $this->Param['generate_schema_url']=$generate_schema_url;
    }


    /**
     * 自定义参数
     * @param $custom_parameters
     */
    public function setCustomParameters($custom_parameters){
        $this->Param['custom_parameters']=$custom_parameters;
    }

}